package com.reins.bookstore.dao;

import com.reins.bookstore.entity.Basketline;
import com.reins.bookstore.repository.BasketlineRepository;

import java.util.List;

public interface BasketDao{

    List<Basketline> findAllBasketlinesByUserId(Integer id);

    Basketline checkBasketline(Integer userId, Integer bookId);

    void deleteById(Integer id);

    Basketline save(Basketline add);

    Basketline findById(Integer id);

    List<Basketline> findAll();

    Integer deleteAllByUserId(Integer userId);
}
